//
//  Building.h
//  IsoCplus
//
//  Created by zhouzhanglin on 15/9/17.
//
//

#ifndef __IsoCplus__Building__
#define __IsoCplus__Building__

#include "iso/IsoObject.h"
#include "cocos2d.h"

/// 建筑基类
class Building:public IsoObject
{
protected:
    
    cocos2d::Node *_container; //存放贴图的层
    
public:
    static Building* create(unsigned int size,unsigned int spanX ,unsigned int spanZ);
    ~Building();
    virtual bool init(unsigned int size,unsigned int spanX,unsigned int spanZ) override;
    
    /**
     *  创建贴图
     */
    void createSkin();
};

#endif /* defined(__IsoCplus__Building__) */
